#ifndef PLOTCURVEVIEWITEM_H
#define PLOTCURVEVIEWITEM_H

#include <QWidget>
#include "ui_plotcurveviewitem.h"
#include "interfaces.h"
#include "plotdata.h"

class PlotCurveViewItem: public QWidget
{
    Q_OBJECT

public:
    PlotCurveViewItem(std::string curName, Qt::GlobalColor color, QWidget *parent = 0);
	std::string getCurveName();

private:
    Ui::UI_PlotCurveViewItem m_form;
    std::string m_curName;
    double m_lastValue;

	void setButtonColor(QPushButton *button, Qt::GlobalColor color);

signals:
    void checkStateChanged(std::string cur_name, bool state);

public slots:
    void CheckHandle(int state);
    void SetLastValue(double value);

};

#endif // PLOTCURVEVIEWITEM_H
